/*********************************************************************
 *                                                                   *
 *  Js Css Minifier ( JsCssMin )                                     *
 *  Author: Igor Kanshyn                                             *
 *  Copyright (c) 2009, Igor Kanshyn. All rights reserved.           *
 *                                                                   *
 *  JsCssMin is released under the Apache Software License.          *
 *  See LICENSE.txt for more details.                                *
 *                                                                   *
 *********************************************************************/

package org.grenader.jscssmin;

import org.grenader.jscssmin.files.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 * <p>Product: JsCssMin ( JavaScript and CSS Minifier )<br>
 * Author: Igor Kanshyn (grenader).
 * </p>
 * Date: Apr 27, 2009
 */
public class FileTestCaseBase extends TmpDirTestCaseBase {
    protected String currentClassDirPath;

    @Override
    public void setUp() throws IOException {
        super.setUp();

        currentClassDirPath = FileTestCaseBase.class.getResource("").getFile();
        System.out.println("testFilePath = " + currentClassDirPath);

        File cssFile = new File(currentClassDirPath, "my.css");
        FileUtils.copyFile(cssFile, new File(tmpOriginalDir, "my1.css"));
        FileUtils.copyFile(cssFile, new File(tmpOriginalDir, "my2.css"));

        File jsFile = new File(currentClassDirPath, "my.js");
        FileUtils.copyFile(jsFile, new File(tmpOriginalDir, "my1.js"));
        FileUtils.copyFile(jsFile, new File(tmpOriginalDir, "my2.js"));

    }
}
